Backports for 12005, 11670 and 12043.
authorJan D. <jan.h.d@swipnet.se>
Sun, 12 Aug 2012 09:31:53 +0000 (11:31 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sun, 12 Aug 2012 09:31:53 +0000 (11:31 +0200)
commit9f6e3e2144beeb359c53a2d068a6287f47f58b36
tree59dac388d705f09ac9129c2d776786344ec13321
parentf4fc88cadd54bce0e384ec4fdcbf4af0d5769c06
Backports for 12005, 11670 and 12043.

* nsmenu.m (ns_update_menubar): Add braces to ambigous if-else.

* nsmenu.m (Popdown_data): New struct.
(pop_down_menu): p->pointer is Popdown_data.  Release the pool and
free Popdown_data.
(ns_popup_dialog): Use NSAutoreleasePool and pass it to pop_down_menu.
(initWithContentRect): Make imgView and contentView non-static
and autorelease them.  Also autorelease img and matrix.
(dealloc): Remove (Bug#12005).

* nsterm.m (keyDown:): Interpret flags without left/right bits
as the left key (Bug#11670).

* nsterm.m (ns_read_socket): Return early if there is a modal
window (Bug#12043).
src/ChangeLog
src/nsmenu.m
src/nsterm.m